package cn.iocoder.yudao.module.diy.controller.admin.addon.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 装修插件分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AddonPageReqVO extends PageParam {

    @Schema(description = "插件名称")
    private String title;

    @Schema(description = "插件图标")
    private String icon;

    @Schema(description = "插件标识")
    private String addonKey;

    @Schema(description = "插件描述")
    private String addonDesc;

    @Schema(description = "状态", example = "2")
    private Integer addonStatus;

    @Schema(description = "插件地址", example = "https://www.iocoder.cn")
    private String addonUrl;

    @Schema(description = "作者")
    private String author;

    @Schema(description = "版本号")
    private String version;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "安装时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] installTime;

    @Schema(description = "封面")
    private String cover;

    @Schema(description = "插件类型app，addon", example = "1")
    private String type;

    @Schema(description = "插件支持的应用空表示通用插件")
    private String supportApp;

    @Schema(description = "是否加星")
    private Integer isStar;

    @Schema(description = "编译端口")
    private String compile;

}